package com.tcd.service;

import com.tcd.pojo.Claims;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tcd.pojo.ClaimsDetail;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 理算表 服务类
 * </p>
 *
 * @author space
 * @since 2021-05-27
 */
public interface ClaimsService extends IService<Claims> {
    Claims getClaimsById(Integer claimsId);

    List<Claims> getClaims(Integer pageIndex, Integer pageSize, Integer claimsNumber, Integer warrantyId, String claimsType, String state);

    Integer getClaimsCount(Integer claimsNumber, Integer warrantyId, String claimsType, String state);

    @Options(useGeneratedKeys = true,keyColumn = "claims_id",keyProperty = "claimsId")
    Integer addClaims(Claims claims);

    Integer updateClaims(Claims claims);
}
